<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>伪元素</title>
    <style>
        .money{

        }

        .money:before{
            display: inline-block;
            content: "$";
        }

        .money:after{
            display: inline-block;
            content: "|";
        }
    </style>
</head>
<body>
<div class="money">
    100

</div>
</body>
</html>